<template>
	<el-drawer title="证照出借详情" v-model="visible" :size="800" destroy-on-close @closed="$emit('closed')">
		<el-container v-loading="loading">
			<el-main>
				<el-form>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="出借标题" prop="title">{{form.title}}</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="出借证照" prop="licName">{{form.licName}}</el-form-item>
						</el-col>
					</el-row>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="借方单位" prop="orgName">{{form.orgName}}</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="出借人员" prop="borrowingUserName">{{form.userName}}</el-form-item>
						</el-col>
					</el-row>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="出借日期" prop="beginTime">{{form.beginTime}}</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="截止日期" prop="endTime">{{form.endTime}}</el-form-item>
						</el-col>
					</el-row>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="还归日期" prop="backTime">{{form.backTime}}</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="归还人员" prop="backUser">{{form.backUser}}</el-form-item>
						</el-col>
					</el-row>
					<el-form-item label="备注说明">{{form.remark}}</el-form-item>
				</el-form>
				<el-footer style="text-align: center;">
					<el-button @click="visible=false">关闭</el-button>
				</el-footer>
			</el-main>
		</el-container>
	</el-drawer>
</template>

<script>
export default {
	emits: ['success', 'closed'],
	components: {
	},
	data() {
		return {
			loading: false,
			form: {
				recordId: '',
				title: '',
				licName: '',
				orgName: '',
				userName: "",
				beginTime: '',
				endTime: '',
				backTime: '',
				backUser: '',
				remark: ''
			},
			visible: false,
			isSaveing: false,
		}
	},
	mounted() {

	},
	methods: {
		//显示
		open(model){
			this.model=model;
			this.visible = true;
			return this;
		},
		//表单注入数据
		setData(data){
			this.form.recordId = data.recordId
			this.form.title = data.title
			this.form.licName = data.licName
			this.form.orgName = data.orgName
			this.form.userName = data.userName
			this.form.beginTime = data.beginTime
			this.form.endTime = data.endTime
			this.form.backTime = data.backTime
			this.form.backUser = data.backUser
			this.form.remark = data.remark
		},
	}
}
</script>

<style>
</style>
